#include <stdio.h>
int main(void)
{
    int num;
    printf("Enter a number: ");
    scanf("%d", &num);
    if (num < 0)
        printf("The number %d is too small\n", num);
    else if (num < 10)
        printf("The number %d has 1 digits\n", num);
    else if (num < 100)
        printf("The number %d has 2 digits\n", num);
    else if (num < 1000)
        printf("The number %d has 3 digits\n", num);
    else
        printf("The number %d is too large\n", num);
    return 0;
}